added service for authentication & moved login there