Minimal changes to login element