(Vishal/Nikita)Login api improved with exception handling