working login and profile