email and pw login and routing