Reduce timeout
Move login endpoint into its own file