Fixed Authentication Bug