Creating the Main Frame and the login Frame