Register & Login FIX

catches no database connection