Further changes to authentication