bug fixing authentication