added basic login form for bookmark
seperated the .ml files into different function