Added Registration and Login Functionality