Login and Signup functions are improved