fixed current_user issues

@AlexSYanai, fixed issues with sessions and user.