revamped session and current user creation