updated fron-end for auth