Changing post action for login and register to relative paths