made Authenticate struct fields exportable
refactored the login service call