Fixed login and have working login dialog on the manual side

#400