bug solved. It is working now. need to update redirect page if
successful login