Finish authentication on front end and backend