Added user tests for duplicates / login function