Improved Sign up and log in implementation