bug in functions

prevented wp-admin login