public static String checkPosition(String username, String pass){
		
		Employee bean = new Employee();
		bean.setUsername(username);	
		bean = (Employee)DatabaseProcess.getRow(bean);
		
		//if username cannot be found in the database
		if(bean == null){
			return "not found";
		}
		if(bean.getUsername().equals(username)&&bean.getPass().equals(pass)){
			return bean.getPosition().toLowerCase();
		}else{
			return "incorrect username and password combination";
		}
	}