refactored the code
changed authentication data fetch url and added error msg in login form

changed authentication data fetch url and added error msg in login form