fix loginform error
and rename it to Loginform
fix some comments
fix MainFrame class
add EntityManagerFactory property to MainFrame