Add email recovery feature and password check