Implemented simplier login code, so it is not required anymore to pass user id parameter by creating a new profile session