added optional redirect parameter after successful login