Added index to user, reformatted login and signup.