public SimpleResponse authenticate()
	{
		
		Session session = HibernateUtil.getSession();
		//TODO -Change the query to fetch only user related data and not all user data
		List<UserTbl> users = session.createQuery("from UserTbl").list();
		
		for(UserTbl user : users)
		{
			if(user.getUserName().equals(bean.getUserName()))
			{
				if(user.getPassword().equals(bean.getPassword()))
				{
					SimpleResponse simpleResponse = ResponseUtil.createSuccessResponse();
					simpleResponse.setStatusString("User " + bean.getUserName() + " successfully logged in ");
					
					return simpleResponse;
				}
			}
		}
		
		SimpleResponse simpleResponse = ResponseUtil.createFailureResponse();
		simpleResponse.setStatusString("Login denied for user " + bean.getUserName());
		return simpleResponse;
	}