Removed debug statement and linked login button to javascript function