Updating logins to redirect back to the current page