Added a modal system. Login and register modals work for display and exit when clicked the corner X button