Changed auth controller response format to structs instead of maps