(add) login and register api conforms to swagger
(add) login and register api conforms to swagger

       Reasons
=====================
1. There were some dicrepancies with what was implemented and what was
promised in api design.

       Changes
=====================
1. Implementation conforms with swagger documentation

SWE574-Nerds/friendly-eureka,SWE574-Nerds/friendly-eureka,SWE574-Nerds/friendly-eureka,SWE574-Nerds/friendly-eureka