Added loginscript

still to do:
- redirection
- remember me