more safty login

save the session id into the database and equals that with login
procedure
some smaller fixes ;)