reverted login redirection to original code