browse user now works with messages and userinfo, had to make some changes in original code
log in function implemented