added auth controller and factory files