Implemented Log in Modal