Fixed some bug and added new controller

Fixed some bug and added new controller to manage user auth