Fixed real time login and began function creation