Fixes to login and assignment.