added login features to registration project