Fix log in issues and add field for user