Login form and processes

mainly updates to the login form. It is currently unready.