Made changes to AuthenticationService.java file