removed remember me
adding handling if directory is a string