Completed exercises for User Authentication chapter