added current_user login/logout function