Creating the jquery function for login and signup