Fixed some bugs in forms and cleaned login/logout buttons