public boolean authenticate(String email, String hash)
	{
		initConnection();

		//Check password matches for given email
		String preparedString = null;
		PreparedStatement preparedQuery = null;
		try 
    	{
			//Prepare Statement
			preparedString = "SELECT email,password FROM users WHERE email = ? AND password = ?;";
    		preparedQuery = (PreparedStatement) connection.prepareStatement(preparedString);
    		preparedQuery.setString(1, email);
    		preparedQuery.setString(2, hash);
    		
    		//Execute Statement
    		ResultSet resultSet = preparedQuery.executeQuery();  	
    		
	    		//TODO: Remove debug
				System.out.println("resultset for  [" + preparedQuery.toString() + "] " + ((resultSet == null) ? "== null" : "!= null"));
    		
    		//Handle Result
			return resultSet.first();
		
    	}
    	catch(Exception ex)
    	{

			System.out.println("Problem executing SQL Query [" + preparedQuery.toString() + "] in LoginService.java");
    		ex.printStackTrace();
    		
    	}
    	finally
    	{
    		try
    		{
    			//Finally close stuff to return connection to pool for reuse
        		preparedQuery.close();
        		connection.close();
    		}
    		catch (SQLException sqle)
    		{
    			sqle.printStackTrace();
    		}

    	}
		return false;

	}