Added auth controller for api