Application using JavaEE by which user can register and login