Add GET /login API

Will be used by the client to check whether it is logged in already or not