Got basic login api working