edited redirect location in login.php; used fuction

used function which gets current page url