Login form and many fixes