Worked some on the login-part, not done yet..