Updated frontend and fixed small code error in authentication system