added has secure password method which solved the unknown attribute error