Enhancements in authentication process