fixing athentication