If you are usign shopify free theme. then follow this.
please Go to Online Store->Theme->Edit code then go to templates/customers/login.liquid -> follow this code.
I think please follow this step it's working. Other wise contact me i will help you. because most theme is same login page after redirect.