Added RegBean and LoginController impl