Activities controller plus small fixes to the application including user authentication