display sign in failed message
rewrote query with criteria api
use metamodel