Changed post routes, made user authentication more robust