added new function for creating activities
updated name validation method - corrected max length
added getter and setter methods for token - they now use local storage if available