Login for single page application