removed some unnecessary functions
fixed a bug where login leads to unsaved changes warning
refactored and hopefully fixed activation