AJ - Added Login/registration functionality