Login/Signup forms javascript working