Implemented login with two different users

The user can now choose in the login form whether he wants to login as
readonly user or as read/write user.