public boolean authenticate(String username, String password) {
		// TODO Auto-generated method stub
		if(username!=null && username.trim()!=null && password!=null && password.trim()!="" ){
			SessionFactory sessionFactory=configureSessionFactory();
			Session session=sessionFactory.openSession();
			session.beginTransaction();
			String hql="SELECT U.username, U.password FROM Users U where U.username='"+username+"'"+" and U.password='"+password+"'";
			Query query = session.createQuery(hql);
			List<Users> results = query.list();
			if(results.size()==1){
				// session.getTransaction().commit();
				// session.close();
				return true;
			}
		}
		return false;
	}