Implemented authentication on users